package com.itheima.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Author: Zheng
 * Date:   2024/3/16  16:35
 * Package：com.itheima.config
 * Description：
 * Version：1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "person")
public class PersonProperties {

    private String name;

    private int age;
}
